package jeconbond.automata;

import jeconbond.economic.resources.ResourceBasket;

public class Outcome implements IOutcome {
	private INode destination;
	private ResourceBasket[] requirements;
	private ResourceBasket[] produced = ResourceBasket.EPMTY_RB_ARRAY;

	public Outcome(INode destination, ResourceBasket ... requirements) {
		this.destination = destination;
		this.requirements = requirements;
	}

	@Override
	public INode getDestination() {
		return destination;
	}

	@Override
	public ResourceBasket[] getRequirements() {
		return requirements;
	}

	@Override
	public ResourceBasket[] getProducedResources() {
		return produced;
	}

	@Override
	public void setProducedResources(ResourceBasket ... produced) {
		this.produced = produced;
	}

	@Override
	public void setRequirements(ResourceBasket ... requirements) {
		this.requirements = requirements;
	}
	
	public String toString() {
		return "->" + destination;
	}
}
